package com.ujiuye.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ujiuye.pojo.Checkgroup;
import com.ujiuye.pojo.Role;
import com.ujiuye.utils.PageResult;
import com.ujiuye.utils.QueryPageBean;
import com.ujiuye.utils.Result;

import java.util.List;

/**
 * <p>
 * 角色 服务类
 * </p>
 *
 * @author zhangwenping
 * @since 2021-07-05
 */
public interface IRoleService extends IService<Role> {

    PageResult listPage(QueryPageBean queryPageBean);

    void save(Integer[] checkpermissionIds, Role role);

    void update(Integer[] checkpermissionIds, Role role);

    Result getById(int id);

    List<Role> listByUserId(int id);
}
